<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"
	/>
	<meta name="format-detection" content="tephone=no,email=no,date=no,address=no">
	<link rel="stylesheet" type="text/css" href="../css/aui.css" />
	<!--<link rel="stylesheet" type="text/css" href="../css/index-min.css" />-->
	<script type="text/javascript" src="../script/api.js"></script>
	<script type="text/javascript" src="../script/vue.min.js"></script>
	<!--<script type="text/javascript" src="../script/prism-min.js"></script>-->
	<style type="text/css">

	</style>
</head>

<body>
	<!--<div id="J_prismPlayer" class="prism-player"></div>
	<!— prism-player为h5播放器皮肤的钩子类名，请务必加上 —>
	<button id="J_clickToPlay" type="button">播放</button>-->
</body>


<!--<script type="text/javascript" src="../script/sewise.player.min.js"></script>-->
<script type="text/javascript">
	var vm;

	apiready = function () {

		var obj = api.require('playModule');
		// vm = new Vue({
		// 	el: '#content',
		// 	data: {
		// 		record: {},
		// 		show: false
		// 	},
		// 	ready: function () {

		// 	}
		// });
		obj.init({

			buffering: "加载中...",
			fullBtnPlan: 1
		}, function () {
			obj.play({
				rect: {
					x: 0,
					y: 0,
					w: api.winWidth,
					h: 320,
				},
				fixedOn: api.frameName,
				title: ' ',
				url: 'rtmp://live.biachina.com/AppName/StreamName?auth_key=1497050770-0-0-cf69cf998fb44a9f5938f784f339b64c',
				defaultBtn: true,
				enableFull: false,
				isTopView: false
			}, function (ret, err) {
				alert(JSON.stringify(ret));
			});
		});


		// var player = new prismplayer({
		// 	id: "J_prismPlayer", // 容器id
		// 	source: "http://live.biachina.com/AppName/StreamName.m3u8?auth_key=1497046308-0-0-3ee7f4d02c1a37b49601d1e6e3131dd9",// 视频地址
		// 	autoplay: false,    //自动播放：否
		// 	width: "100%",       // 播放器宽度
		// 	height: "400px"      // 播放器高度
		// });
		// var clickDom = document.getElementById("J_clickToPlay");
		// clickDom.addEventListener("click", function (e) {
		// 	// 调用播放器的play方法
		// 	player.play();
		// });
		// // 监听播放器的pause事件
		// player.on("pause", function () {
		// 	alert("播放器暂停啦！");
		// });

	}

</script>

</html>